<div class="entity-form-buttons-button-group">
  <nz-button-group nzSize="small">
    <ng-content select="[beforeSaveBtn]"></ng-content>
    <button
      nz-button
      *ngIf="saveBtnVisible"
      nzType="link"
      [disabled]="saveBtnDisabled"
      (click)="OnSaveBtnClick()"
    >
      {{ 'BasicArchives::UI:SimplyTree.FormButtons.Save' | abpLocalization }}
    </button>
    <ng-content select="[afterSaveBtn]"></ng-content>
    <ng-content select="[beforeGiveupBtn]"></ng-content>
    <button
      nz-button
      *ngIf="giveupBtnVisible"
      nzType="link"
      [disabled]="giveupBtnDisabled"
      (click)="OnGiveupBtnClick()"
    >
      {{ 'BasicArchives::UI:SimplyTree.FormButtons.Giveup' | abpLocalization }}
    </button>
    <ng-content select="[afterGiveupBtn]"></ng-content>
    <ng-content select="[beforeNewBtn]"></ng-content>
    <button
      nz-button
      *ngIf="newBtnVisible"
      nzType="link"
      [disabled]="newBtnDisabled"
      (click)="OnNewBtnClick()"
    >
      {{ 'BasicArchives::UI:SimplyTree.FormButtons.New' | abpLocalization }}
    </button>
    <ng-content select="[afterNewBtn]"></ng-content>
    <ng-content select="[beforeDeleteBtn]"></ng-content>
    <button
      nz-button
      *ngIf="deleteBtnVisible"
      nzType="link"
      [disabled]="deleteBtnDisabled"
      (click)="OnDeleteBtnClick()"
    >
      {{ 'BasicArchives::UI:SimplyTree.FormButtons.Delete' | abpLocalization }}
    </button>
    <ng-content select="[afterDeleteBtn]"></ng-content>
  </nz-button-group>
</div>
<div>
  <nz-input-group nzSearch nzSize="small" [nzAddOnAfter]="suffixButton">
    <input
      type="text"
      nz-input
      [placeholder]="searchPlaceholder"
      [(ngModel)]="code"
      (keyup.enter)="OnSearchBtnClick()"
    />
  </nz-input-group>
  <ng-template #suffixButton>
    <button nz-button nzSize="small" (click)="OnSearchBtnClick()">{{ 'BasicArchives::UI:SimplyTree.FormButtons.Search' | abpLocalization }}</button>
  </ng-template>
</div>
